package com.art8173.shopping_common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 统一返回码枚举
 */

@Getter
@AllArgsConstructor
public enum BusErrorEnum {

    //操作成功
    SUCCESS(200,"success"),

    NO_LOGIN_ERROR(401,"未登录"),

    //系统异常
    SYSTEM_ERROR(1000,"系统错误"),

    //参数错误
    PARAMETER_ERROR(1001,"参数错误"),

    PERMISSION_IN_USE(1002,"权限正在使用中"),

    USERNAME_OR_PASSWORD_ERROR(1003,"用户名或密码错误"),

    NO_PERMISSION_ERROR(1004, "没有权限访问");


    private final Integer code;
    private final String message;
}
